﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="mailother.aspx.cs" Inherits="Sys_mailother" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>其他邮件</title>
 <link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>    
</head>
<body>
    <form id="form1" runat="server">
       <div style="background:#efefef;width:100%;">
		&nbsp;<a href="mailcommon.aspx" target="mainwin" class="easyui-linkbutton" plain="true">普通消息</a>&nbsp;|
		<a href="#" target="mainwin" class="easyui-linkbutton" plain="true">其他消息</a>
        </div>	 
    <div>
     <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="background-color:#fedcbd; padding-bottom:5px;">
                    <table>
                        <tr>
                            <td>
                                消息类型：</td>
                            <td>
                                <asp:DropDownList ID="ddlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                                    <asp:ListItem Selected="True" Value="2">学院消息</asp:ListItem>
                                    <asp:ListItem Value="3">项目消息</asp:ListItem>
                                    <asp:ListItem Value="4">系统消息</asp:ListItem>
                                </asp:DropDownList></td>   
                            <td>
                                发件方：</td>
                            <td>
                                <asp:DropDownList ID="ddlSender" runat="server">
                                </asp:DropDownList></td>   
                            <td>
                                时间：</td>
                            <td>
                                <input id="txtStart" runat="server" style="width: 135px" type="text" onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:false,readOnly:true,maxDate:'#F{$dp.$D(\'txtEnd\',{d:-1})||\'2020-10-01\'}'})" />到<input id="txtEnd" runat="server" style="width: 135px"
                                    type="text" onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'txtStart\',{d:+1})}',maxDate:'2020-10-01'})" /></td>    
                            <td>
                                <asp:ImageButton ID="btnSerch" runat="server" ImageUrl="~/Images/search.png" OnClick="btnSeach_Click" /></td>
                        </tr>
                    </table>
                   </div> 
                <div>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>"
                        CustomInfoSectionWidth="50%" FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页"
                        NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox"
                        PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                        SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%" CustomInfoTextAlign="Left">
                    </webdiyer:AspNetPager>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" EmptyDataText="暂时无任何数据！" Width="100%" OnRowCommand="GridView1_RowCommand">
                        <Columns>
                            <asp:TemplateField HeaderText="序号">
                              <ItemTemplate>
                                   <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%> 
                              </ItemTemplate> 
                                <ItemStyle Width="40px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="name1" HeaderText="发件方">
                                <ItemStyle Width="60px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="收件方">
                                <ItemStyle Width="70px" />
                                <ItemTemplate>
                                <%#strReceive() %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="title" HeaderText="主题" />
                            <asp:BoundField DataField="createdate" HeaderText="时间" >
                                <ItemStyle Width="160px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/js/themes/icons/cancel.png" CommandArgument='<%# Eval("msgid") %>' CommandName="del" OnClientClick="return confirm('确定删除此消息?');"/>
                                </ItemTemplate>
                                <ItemStyle Width="40px" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle CssClass="pgr" />
                        <AlternatingRowStyle CssClass="alt" />
                    </asp:GridView>
               </div> 
         </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
